package com.jt.mappers;

import com.jt.pojo.Dog;
import com.jt.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;
import java.util.stream.Stream;

public interface UserMapper {
    @Select("select * from demo_user")
    List<User> findAll();
    List<User> findUserByAge(@Param("minAge") Integer minAge,
                             @Param("maxAge") Integer maxAge);

    List<User> findUserByName(String name);

    Integer insertUser(User user);

    Integer updateUserById(User id);

    Integer deleteUserById(String id);

    List<User> findIn(List ids);

    List<User> findInMap(@Param("ids") Integer[] ids,
                         @Param("sex") String sex);

    List<User> findSqlWhere(User user);

    List<User> findUserByNotNull(User user);

    List<User> updateUserByNotNull(User user);


//    List<User> findUserByAge(Map map);

}
